﻿<%@ Page Title="" Language="C#" MasterPageFile="~/uc/MemberIndex.Master" AutoEventWireup="true" CodeBehind="comment.aspx.cs" Inherits="ncp.Web.member.comment" %>
<%@ Import Namespace="ncp.Business" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">
<title>信息管理-中国农业信息化服务商</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="bh-con-right-h-yy"><span>信息管理</span> > 
    <asp:Label ID="lbTitle" runat="server" Text="用户评论"></asp:Label></div>
<ul class="membermsg">
    <asp:Repeater ID="repMsg" runat="server">
            <ItemTemplate>
            <li>
                <div class="msgtitle"><a target="_blank" href="/product/<%#EncryptHelper.EncryptString(Eval("Product_Id").ToString()) %>.html"><%#Eval("Product_Title")%></a></div>
                <div class="caption"><%#Eval("Client_Name")%> 发布于 <%#Eval("Comment_Date","{0:yyyy-MM-dd HH:mm}")%></div>
                <div class="content"><%#Eval("Comment_Note")%></div>
            </li>
            </ItemTemplate>
            <FooterTemplate>
                <asp:Literal ID="ltEmpty" Text="<table style='border:none;width:100%'><tr><td style='text-align:center;height:40px;'>没有找到相关评论！</td></tr></table>" runat="server" Visible='<%#bool.Parse((repMsg.Items.Count==0).ToString())%>'></asp:Literal>
            </FooterTemplate>
        </asp:Repeater>
</ul>
<webdiyer:aspnetpager id="AspNetPager1" runat="server"  CssClass="anpager" CurrentPageButtonClass="cpb"
         onpagechanged="AspNetPager1_PageChanged" UrlPageIndexName="pageindex" EnableUrlRewriting="true" UrlRewritePattern="/member/comment/%role%/{0}.html"
        CustomInfoHTML="<p>第<span>%CurrentPageIndex%</span>页，共<span>%PageCount%</span>页，每页显示<span>%PageSize%</span>条</p>"
    Width="100%" HorizontalAlign="right" AlwaysShowFirstLastPageNumber="true" PageSize="10" FirstPageText="首页" 
        LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"></webdiyer:aspnetpager>  
</asp:Content>
